import request from '@/utils/request'
// 查询员工数据
export function getUserTab(queryParams) {
    return request({
        url: '/admin/staffList',
        method: 'post',
        params: queryParams
    })
}

// 添加员工数据

export function adduserInfo(queryParams) {
    return request({
        url: '/admin/staffAdd',
        method: 'post',
        params: queryParams
    })
}

// 删除员工
export function deleteUser(queryParams) {
    return request({
        url: '/admin/staffDelete',
        method: 'post',
        params: queryParams
    })
}

// 编辑员工

export function updateUser(queryParams) {
    return request({
        url: '/admin/staffUpdate',
        method: 'post',
        params: queryParams
    })
}


/**
 * 劳动合同接口数据
 * getLaborList   全部劳动合同数据
 * selectLabor 查询单个劳动合同数据
 * upLabor 编辑劳动合同
 * 
 */

export function getLaborList(queryParams) {
    return request({
        url: '/admin/getAllLaborContract',
        method: 'post',
        params: queryParams
    })
}

/**
 * 社保卡接口数据
 * @param queryParams
 */
export function selectSocialCard(queryParams) {
    return request({
        url: '/admin/selectAllSocialCard',
        method: 'post',
        params: queryParams
    })
}
